package com.label.Dao;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.label.Model.Do.Activity;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface ActivityMapper extends BaseMapper<Activity> {

    Activity getOneById(String id);
    List<Activity> getAllByIds(@Param("ids") List<String> ids);
    List<Activity> getAll();
    List<Activity> getAllByLevel(String level);
    List<Activity> getAllByName(String name);
    Boolean saveActivityTag(@Param("activity") String activity, @Param("tags") List<Long> tags);
    Boolean delActivityTag(String activity);
}
